﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ELS.Template.DragContent
{
    public partial class RadioItemTag : UserControl, DragInterface
    {
        public RadioItemTag()
        {
            InitializeComponent();
        }

        bool inTemplate = false;

        public UserControl makeNewObject()
        {
            RadioItem item = new RadioItem();
            item.inTemplate = true;
            return item;
        }

        public bool isInTemplate()
        {
            return inTemplate;
        }

        private void RadioItemTag_MouseDown(object sender, MouseEventArgs e)
        {
            DragDropEffects effect = DoDragDrop(this, DragDropEffects.Copy);
        }

        public void disableControls()
        {
        }

        public void enableControls()
        {
        }

        private void radioBox_Click(object sender, EventArgs e)
        {
            radioBox.Checked = true;
        }
    }
}
